package com.yunfei.bo.crmAcceDtl;
import com.yunfei.entity.crmAcceDtl.*;
import com.yunfei.utils.string.StringUtil;
/**
*@tablename CRM_ACCE_DTL
*@author zhengyunfei
*@createDate Thu Mar 07 15:27:22 CST 2019
*/ 
public class CrmAcceDtlBo implements java.io.Serializable{
	private String cCustNo;
	private String lStorageid;
	private String cFilename;
	private String cCatalog;
	private String cSubkeyid;
	private String appFilename;
	private String fileUrl;
	private String loadDate;
	private String dCreatedate;
	private String crmUrl;
	private String field;
	private String order;

	public String getcCustNo() {
		return cCustNo;
	}

	public void setcCustNo(String cCustNo) {
		this.cCustNo = cCustNo;
	}

	public String getlStorageid() {
		return lStorageid;
	}

	public void setlStorageid(String lStorageid) {
		this.lStorageid = lStorageid;
	}

	public String getcFilename() {
		return cFilename;
	}

	public void setcFilename(String cFilename) {
		this.cFilename = cFilename;
	}

	public String getcCatalog() {
		return cCatalog;
	}

	public void setcCatalog(String cCatalog) {
		this.cCatalog = cCatalog;
	}

	public String getcSubkeyid() {
		return cSubkeyid;
	}

	public void setcSubkeyid(String cSubkeyid) {
		this.cSubkeyid = cSubkeyid;
	}

	public String getdCreatedate() {
		return dCreatedate;
	}

	public void setdCreatedate(String dCreatedate) {
		this.dCreatedate = dCreatedate;
	}

	/**
		* 更改排序字段
		* @return
		*/
   public String getField() {
		   return field;
   }
   public void setField(String field) {
		   this.field = field;
   }
   public String getOrder() {
		   return order;
   }
   public void setOrder(String order) {
		   this.order = order;
   }
	private int curNo;
	public int getCurNo() {
		int value=(curNo-1)*curSize;
		return value;
	}	
	public void setCurNo(int curNo) {
		this.curNo = curNo;
	}
	private int curSize;
	public int getCurSize() {
		return curSize;
	}
	public void setCurSize(int curSize) {
		this.curSize = curSize;
	}
	public void setLStorageid(String lStorageid){
		this.lStorageid=lStorageid;
	}
	public String getLStorageid(){
		return lStorageid;
	}
	public void setCFilename(String cFilename){
		this.cFilename=cFilename;
	}
	public String getCFilename(){
		return cFilename;
	}
	public void setCCatalog(String cCatalog){
		this.cCatalog=cCatalog;
	}
	public String getCCatalog(){
		return cCatalog;
	}
	public void setCSubkeyid(String cSubkeyid){
		this.cSubkeyid=cSubkeyid;
	}
	public String getCSubkeyid(){
		return cSubkeyid;
	}
	public void setAppFilename(String appFilename){
		this.appFilename=appFilename;
	}
	public String getAppFilename(){
		return appFilename;
	}
	public void setFileUrl(String fileUrl){
		this.fileUrl=fileUrl;
	}
	public String getFileUrl(){
		return fileUrl;
	}
	public void setLoadDate(String loadDate){
		this.loadDate=loadDate;
	}
	public String getLoadDate(){
		return loadDate;
	}
	public void setDCreatedate(String dCreatedate){
		this.dCreatedate=dCreatedate;
	}
	public String getDCreatedate(){
		return dCreatedate;
	}
	public void setCrmUrl(String crmUrl){
		this.crmUrl=crmUrl;
	}
	public String getCrmUrl(){
		return crmUrl;
	}
	public static CrmAcceDtlEntity boToEntity(CrmAcceDtlBo bo){
		CrmAcceDtlEntity entity=new CrmAcceDtlEntity();
		entity.setLStorageid(bo.getLStorageid());
		entity.setCFilename(bo.getCFilename());
		entity.setCCatalog(bo.getCCatalog());
		entity.setCSubkeyid(bo.getCSubkeyid());
		entity.setAppFilename(bo.getAppFilename());
		entity.setFileUrl(bo.getFileUrl());
		entity.setLoadDate(bo.getLoadDate());
		entity.setDCreatedate(bo.getDCreatedate());
		entity.setCrmUrl(bo.getCrmUrl());
		return entity;
	}
	public static CrmAcceDtlBo entityToBo(CrmAcceDtlEntity bo){
		CrmAcceDtlBo entity=new CrmAcceDtlBo();
		entity.setLStorageid(bo.getLStorageid());
		entity.setCFilename(bo.getCFilename());
		entity.setCCatalog(bo.getCCatalog());
		entity.setCSubkeyid(bo.getCSubkeyid());
		entity.setAppFilename(bo.getAppFilename());
		entity.setFileUrl(bo.getFileUrl());
		entity.setLoadDate(bo.getLoadDate());
		entity.setDCreatedate(bo.getDCreatedate());
		entity.setCrmUrl(bo.getCrmUrl());
		return entity;
	}
	public static String changeFieldColumn(String field){
		String result="";
			if(!StringUtil.isNullOrEmpty(field)){
				if(field.equals("lStorageid")){
					result="L_STORAGEID";
				}
				if(field.equals("cFilename")){
					result="C_FILENAME";
				}
				if(field.equals("cCatalog")){
					result="C_CATALOG";
				}
				if(field.equals("cSubkeyid")){
					result="C_SUBKEYID";
				}
				if(field.equals("appFilename")){
					result="APP_FILENAME";
				}
				if(field.equals("fileUrl")){
					result="FILE_URL";
				}
				if(field.equals("loadDate")){
					result="LOAD_DATE";
				}
				if(field.equals("dCreatedate")){
					result="D_CREATEDATE";
				}
				if(field.equals("crmUrl")){
					result="CRM_URL";
				}
		}
		return result;
	}
}

